package cn.zhangbox.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@EnableDiscoveryClient //使用该注解将注册服务到eureka
@SpringBootApplication
public class SpringCloudDemoApplication {

	public static void main(String[] args) {
		new SpringApplicationBuilder(
				SpringCloudDemoApplication.class).web(true).run(args);
	}
}
